<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<style>
/* Make this table look pretty */
#submitted-data {
	margin: 1em;
	padding: 1em;
	background-color: #F0E2F0;
}

div.row .row-height {
	padding: 10px;
}

pre {
	margin-left: 5%;
	margin-right: 5%;
}
</style>

<div class="container-fluid" id="submitted-data">
	<h1>Data Submitted</h1>
	<div class="row">
		<div class="row-height">Below is the data we received.</div>
	</div>

	<div class="row">
		<div class="row-height">If you can see all the data that you put
			in the form, you are done for now.</div>
	</div>

	<c:choose>
		<c:when test="${not empty account}">
			<div class="row">
				<pre>${account}</pre>
			</div>
			<div class="row">
				<div class="row-height">
					Notice that the beneficiaries have disappeared - this is because we
					have lost the original account from the database, it was in the <i>previous</i>
					request, but not in this form submission. We will fix this in the
					next lab.
				</div>
			</div>
		</c:when>
		<c:otherwise>
			<div class="row">
				<pre>${accountSearchCriteria}</pre>
			</div>
		</c:otherwise>
	</c:choose>
</div>


<hr />